package com.controller;

import com.pojo.Menu;
import com.server.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lvjiazhen
 * @date 2021/7/27  18:02
 */
@RestController
@RequestMapping("system/cfg")
public class MenuController {
    @Autowired
    private IAdminService adminService;

    // 通过用户id 查询菜单列表
    @GetMapping("/menu")
    private List<Menu> getMenusByAdminId(){
        return adminService.getMenusByAdminId();
    }
}
